

<!--<!DOCTYPE HTML>
<html lang="en-US">

<head>
    <meta charset="UTF-8">
    <title>ueditor demo</title>
</head>-->

<!--<a href="#/layui/meetList" class="layui-btn layui-btn-xs layui-btn-primary" style="margin: 20px 0 0 100px;">
  <i class="layui-icon">&#xe65c;</i>
</a>-->

<form action="" class="layui-form">
	<div class="layui-fluid">
		<div class="layui-card">
			<div class="layui-row">
		    <div class="layui-col-xs12">
		    	<div class="layui-card-header"><h2>添加会议</h2>
		      	</div>
		      	<div class="layui-card-body">
		      
		      	<!--<div class="layui-card-body">-->
		      		<div class="layui-form-item">
		      			<div class="layui-form-label">会议名称：<span class="haveTo">*</span></div>
		      			<div class="layui-input-block">
		      				<input type="text" name="meetName" lay-verify="required" class="layui-input meetName" >
		      			</div>
		      		</div>
		      		<div class="layui-form-item">
		      			<div class="layui-form-label">开始时间：<span class="haveTo">*</span></div>
		      			<div class="layui-input-block">
		      				<input type="text" lay-verify="required" class="layui-input startTime" id="dayz">
		      			</div>
		      		</div>
			      </div>	
		    </div>
		    
		    <div class="layui-col-md10">
		    	<div class="addFHBtn">
		    		<!--lay-submit-->
		    		<a class="layui-btn meetBtn layui-btn-primary" href="#/layui/meetList">返回</a>
					<button class="layui-btn confirm meetBtn" type="button" lay-submit lay-filter="queding" >确定</button>
					
				</div>
		    </div>
    	</div>
	</div>
</form>

	
      
      
<script>
	let meetName = document.querySelector(".meetName");
	let startTime = document.querySelector(".startTime");
	let prodInfo = document.querySelector(".prodInfo");
	let confirm = document.querySelector(".confirm");
	
	layui.use(['jquery', 'mockjs', 'table', 'sidebar', 'form','route', 'laydate'], function () {
			var $ = layui.jquery,
	      layer = layui.layer,
	      table = layui.table,
	      sidebar = layui.sidebar,
	      laydate = layui.laydate,
	      route = layui.route,
	      params = route.params(),
	      layedit = layui.layedit,
	      form = layui.form;
	      
	      console.log()
	       
	      
	      let _obj = {
	      	 "Guid": "",
			  "Name": "",
			  "Address": "",
			  "StartTime": "",
			  "EndTime": "",
			  "Detail": "",
			  "CreateTime": "",
			  "CreateUser": "",
			  "ModifyUser": "",
			  "ModifyTime": ""
	      }
	      
	      console.log(1,params)
	      
	      laydate.render({
		    elem: '#dayz', //指定元素
		    type: 'datetime'
		  });
		  
		  function _confirm(){
//		  	debugger
		  	_obj.Name = meetName.value;
		  	_obj.StartTime = startTime.value;
		  	_obj.Detail = layedit.getContent(index);
		  	
		  	
		  }
		  
		  
			form.on('submit(queding)',_confirm);
		  
		console.log(1)
	})
</script>

<style scoped>
		.haveTo{
			color: red;
		}
		.meetInfo{
			position: relative;
		}
		.fr{
			float: right;
		}
		.fl{
			float: left;
		}
		.clearfix::after{
			content: "";
			display: block;
			width: 100%;
			height: 0;
			clear: both;
		}
		.meetIntro{
			position: relative;
		}
		.limit{
			position: absolute;
			bottom: 5px;
			right: 10px;
		}
      	.title{
      		margin-left: 30px;
      		margin-top: 30px;
      	}
      	.checkBtn{
      		border-radius: 5px;
      		width: 100px;
      	}
      	.listBtns{
      		display: flex;
      		justify-content: space-between;
      		width: 100%;
      	}
      	.listBtn{
      		border-radius: 5px;
      	}
      	.addFHBtn{
      		text-align: center;
      		margin-top: 20px;
      		margin-bottom: 20px;
      	}
      	/*.addFHBtn button{
      		display: inline-block;
      		width: 300px;
      	}*/
      	.meetBtn{
      		width: 150px;
      	}
      </style>